﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WCFMINERP.DAL;

namespace WCFMINERP.BLL.Pacher
{
    public class PatcherBll
    {
        public string UpdatePath { get{return GetUpatePath();}}
        public string GetUpatePath()
        {
            string dir;
            using (newSampleYPDBEntities db = new newSampleYPDBEntities())
            {
                FileDirPath filed= db.FileDirPath.FirstOrDefault(f => f.Des == "升级目录");
                if (filed != null)
                {
                    dir = filed.FileDir;
                }
                else

                {
                    dir = "";
                }
            }
            return dir;
        }

    }
}
